package com.example.spark.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.spark.entity.Activity;
import com.example.spark.entity.result.CommonResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;


public interface ActivityService extends IService<Activity> {
    //根据类型查询活动
    CommonResult selectByType(int type);

    //添加活动
    CommonResult addActivity(Activity activity);

    //删除活动
    CommonResult deleteActivity(Long id);

    //修改活动
    CommonResult updateActivity(Activity activity);

    //图片上传
    CommonResult addPhoto(MultipartFile file, Long id) throws IOException;
}
